#
# @lc app=leetcode.cn id=125 lang=python3
#
# [125] 验证回文串
#

# @lc code=start
class Solution:
    def isPalindrome(self, s: str) -> bool:
        result = ''.join(re.split(r'[^A-Za-z0-9]', s)).lower()
        return result[::-1] == result
        # @lc code=end
